package IteratorPattern;

public class Main {
    public static void main(String[] args) {
        IteratorRepository iteratorRepository = new IteratorRepository();
        for(Iterator iterator = iteratorRepository.getIterator();iterator.hasNext();){
           System.out.println( (String) iterator.next());
        }
    }
}
